package com.example.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.entity.Score;
import com.example.repository.ScoreRepository;

@Service
public class ScoreService {
	@Autowired
	private ScoreRepository scoreRepository;
	public List<Score> getScore(){
		
		return (List<Score>) scoreRepository.findAll();
	}
	
	public Score getId(Integer id){
		return scoreRepository.findOne(id);
	}
}
